//
//  UIColor+FTX.h
//  FTXClient
//
//  Created by Lei Perry on 6/21/13.
//  Copyright (c) 2013 BitRice. All rights reserved.
//

@interface UIColor (EV)
#define RGB(a,b,c) [UIColor colorWithRed:a/255.f green:b/255.f blue:c/255.f alpha:1.0]
+ (UIColor *)ev_colorWithHex:(NSUInteger)color;
+ (UIColor *)ev_colorWithHex:(NSUInteger)color alpha:(CGFloat)alpha;

+ (UIColor*) ev_colorWithHexString: (NSString *)stringToConvert alpha:(int)alpha;
+ (UIColor*) ev_colorWithHexString: (NSString *)stringToConvert;
+ (UIColor*) ev_colorWithColor:(UIColor*)color alpha:(CGFloat)alphaValue;

- (UIColor *)ev_colorByMixColor:(UIColor *)mixColor alpha:(CGFloat)alpha;

- (CGFloat) ev_red;
- (CGFloat) ev_green;
- (CGFloat) ev_blue;
- (CGFloat) ev_alpha;

- (UIColor *)ev_lighterColor;
- (UIColor *)ev_darkerColor;

- (NSString *)ev_hexString;

@end

@interface UIColor (ChargerLink)

/**
 *  主色黄 Normal
 *  #FCA927
 */
+ (UIColor *)ev_majorYellowColor;

/**
 *  辅色黄 Normal
 *  #FCCC27
 */
+ (UIColor *)ev_minorYellowColor;

#pragma mark - UI Standard Colors (0606)
/**
 *  主色红 Normal
 *  #e65454
 */
+ (UIColor *)ev_majorRedColor;

/**
 *  主色红 Pressed
 *  #d44a4a
 */
+ (UIColor *)ev_majorRedColor_pressed;

/**
 *  大背景色
 *  #f0f0f0
 */
+ (UIColor *)ev_majorBackgroundColor;

/**
 *  小背景色
 *  #fafafa
 */
+ (UIColor *)ev_minorBackgroundColor;

/**
 *  深背景色 Normal
 *  #44546a
 */
+ (UIColor *)ev_darkBackgroundColor;

/**
 *  深背景色 Pressed
 *  #374457
 */
+ (UIColor *)ev_darkBackgroundColor_pressed;

/**
 *  白背景色 Pressed
 *  #f5f5f5
 */
+ (UIColor *)ev_whiteBackgroundColor_pressed;

/**
 *  大背景分割线
 *  #d6d6d6
 */
+ (UIColor *)ev_majorLineColor;

/**
 *  白背景分割线
 *  #e5e5e5
 */
+ (UIColor *)ev_minorLineColor;

/**
 *  加深分割线
 *  #cccccc
 */
+ (UIColor *)ev_darkLineColor;

#pragma mark UI Standard Text Colors (0606)
/**
 *  极深
 *  #333333
 */
+ (UIColor *)ev_majorTextColor;

/**
 *  深灰
 *  #666666
 */
+ (UIColor *)ev_normalTextColor;

/**
 *  浅灰
 *  #999999
 */
+ (UIColor *)ev_minorTextColor;

/**
 *  极浅
 *  #b2b2b2
 */
+ (UIColor *)ev_lightTextColor;

/**
 *  链接文字颜色
 *  #507daf fix 576a95
 */
+ (UIColor *)ev_linkTextColor;

/**
 *  链接文字颜色
 *  #576a95
 */
+ (UIColor *)ev_blueLinkColor;

/**
 *  红色文字颜色
 *  #e85352
 */
+ (UIColor *)ev_redTextColor;

#pragma mark - Other Colors
+ (UIColor *)ev_maskBackgroundColor;

+ (UIColor *)ev_textFieldBackgroundColor;

/**
 *  #e85352
 */
+ (UIColor *)ev_buttonNormalRedBgColor;
/**
 *  #d44a4a
 */
+ (UIColor *)ev_buttonPressedRedBgColor;
/**
 *  #e6e6e6
 */
+ (UIColor *)ev_buttonDisableGrayBgColor;
/**
 *  #b2b2b2
 */
+ (UIColor *)ev_buttonDisalbleGrayTextColor;
/**
 *  #f6f6f6
 */
+ (UIColor *)ev_buttonPressedGrayBgColor;

@end


@interface UIColor(UIColor_patternArchive)
@property UIImage *image;
@end
